import "babel-core/register"
import "babel-polyfill"
import Vue from 'vue'
import VueRouter from 'vue-router'
import '@/assets/css/common.css'
import FastClick from 'fastclick'
import weChat from 'vue-wechat-title'
import router from './router'
import index from './app.vue'
import 'vue-ydui/dist/ydui.base.css';
import { Input } from 'vue-ydui/dist/lib.px/input';
import { CellGroup, CellItem } from 'vue-ydui/dist/lib.px/cell';
import { SendCode } from 'vue-ydui/dist/lib.px/sendcode';
import { Button, ButtonGroup } from 'vue-ydui/dist/lib.px/button';
import { Confirm, Alert, Toast, Notify, Loading } from 'vue-ydui/dist/lib.px/dialog';
import { Icons } from 'vue-ydui/dist/lib.px/icons';
import { Tab, TabPanel } from 'vue-ydui/dist/lib.px/tab';
import { Slider, SliderItem } from 'vue-ydui/dist/lib.px/slider';
import { TabBar, TabBarItem } from 'vue-ydui/dist/lib.px/tabbar';
import { LightBox, LightBoxImg, LightBoxTxt } from 'vue-ydui/dist/lib.px/lightbox';
import { CheckBox, CheckBoxGroup } from 'vue-ydui/dist/lib.px/checkbox';
import { Popup } from 'vue-ydui/dist/lib.px/popup';
import { Radio, RadioGroup } from 'vue-ydui/dist/lib.px/radio'
import { Step, StepItem } from 'vue-ydui/dist/lib.px/step';
Vue.component(Step.name, Step);
Vue.component(StepItem.name, StepItem);
Vue.component(Radio.name, Radio);
Vue.component(RadioGroup.name, RadioGroup);
Vue.component(Popup.name, Popup);
Vue.component(CheckBox.name, CheckBox);
Vue.component(CheckBoxGroup.name, CheckBoxGroup);
Vue.component(LightBox.name, LightBox);
Vue.component(LightBoxImg.name, LightBoxImg);
Vue.component(LightBoxTxt.name, LightBoxTxt);
Vue.component(TabBar.name, TabBar);
Vue.component(TabBarItem.name, TabBarItem);
Vue.component(Slider.name, Slider);
Vue.component(SliderItem.name, SliderItem);
Vue.component(Tab.name, Tab);
Vue.component(TabPanel.name, TabPanel);
Vue.component(Icons.name, Icons);
Vue.component(Button.name, Button);
Vue.component(ButtonGroup.name, ButtonGroup);
Vue.component(SendCode.name, SendCode);
Vue.component(CellGroup.name, CellGroup);
Vue.component(CellItem.name, CellItem);
Vue.component(Input.name, Input);
Vue.prototype.$dialog = {
  confirm: Confirm,
  alert: Alert,
  toast: Toast,
  notify: Notify,
  loading: Loading,
};
Vue.use(weChat)
Vue.use(VueRouter)
FastClick.attach(document.body)
new Vue({
  el: '#app',
  router,
  render: v => v(index),
})